
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="MOBAN">

<meta name="description" content="">
<meta name="keywords" content="bootstrap, bootstrap5">
<link rel="preconnect" href="https://fonts.googleapis.com/">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">
<link href="static/css/css2.css" rel="stylesheet">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/flaticon.css">
<link rel="stylesheet" href="static/css/bootstrap-icons.css">
<link rel="stylesheet" href="static/css/tiny-slider.css">
<link rel="stylesheet" href="static/css/aos.css">
<link rel="stylesheet" href="static/css/glightbox.min.css">
<link rel="stylesheet" href="static/css/style1.css">
<link rel="stylesheet" href="static/css/flatpickr.min.css">
<link rel="short icon" href="images/28.jpg">
<title>知文招标网 - 公告详情</title>
</head>
<body>
	<div class="cbt">
		<div class="site-mobile-menu site-navbar-target">
			<div class="site-mobile-menu-header">
				<div class="site-mobile-menu-close">
					<span class="icofont-close js-menu-toggle"></span>
				</div>
			</div>
			<div class="site-mobile-menu-body"></div>
		</div>
		<nav class="site-nav">
			<div class="container" id="chw">
				<div class="menu-bg-wrap">
					<div class="site-navigation">
						<div class="row g-0 align-items-center">
							<div class="col-2">
								<a href="index.html" class="logo m-0 float-start">知文项目管理<span
									class="text-primary">.</span></a>
							</div>
							<div class="col-8 text-center">
								<ul
										class="js-clone-nav d-none d-lg-inline-block text-start site-menu mx-auto">
									<li class="active"><a href="index.html">首页</a></li>

									<li class="allPost has-children">
										<a href="blog.html">项目公告</a>
										<ul class="dropdown">
											<li><a href="searchType.html?type=1">招标公告</a></li>
											<li><a href="searchType.html?type=2">中标公告</a></li>
											<li><a href="searchType.html?type=3">其他公告</a></li>
										</ul>
									</li>
									<li><a href="category.html">公司新闻</a></li>
									<li><a href="laws.html">法律法规</a></li>
									<li><a href="about.html">关于我们</a></li>
								</ul>
							</div>
							<div class="col-2 text-end">
								<a href="#"
									class="burger ms-auto float-end site-menu-toggle js-menu-toggle d-inline-block d-lg-none light">
									<span></span>
								</a>
							<form action="" onsubmit="return false" class="search-form d-none d-lg-inline-block">
								<input type="text" class="form-control" placeholder="搜索..." id="searchContent" @keydown.enter="search">
								<span class="bi-searchs"></span>
							</form>
							</div>

						</div>
					</div>
				</div>
			</div>
		</nav>
		<div class="site-cover site-cover-sm same-height overlay single-page"
			style="background-image: url('static/image/hero_5.jpg');">
			<div class="container">
				<div class="row same-height justify-content-center">
					<div class="col-md-6">
						<div class="post-entry text-center">
							<h1 class="mb-4" style="font-size:30px">{{post.title}}</h1>
							<div class="post-meta align-items-center text-center">
								<figure class="author-figure mb-0 me-3 d-inline-block">

								</figure>
								<span class="d-inline-block mt-1" v-if="post.createDate"> &nbsp;
									{{post.createDate.split(" ")[0]}}</span>
								<span class="d-inline-block mt-1" v-if="post.createTime && !post.createDate"> &nbsp;
									{{post.createTime.split(" ")[0]}}</span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<section class="section" >
			<div class="container">
				<div class="row blog-entries element-animate">
					<div class="col-md-12 col-lg-8 main-content" style="width: 100%">
						<div class="post-content-body">
							<div v-html="post.content"></div>
						</div>
					</div>
					<div>
						<a href="javascript:void(0)" style="display:block" v-for="(item,index) in files" @click="downLoadFile(item)">附件{{index+1}}</a>
					</div>
				</div>
			</div>
		</section>
	</div>

	<div id="overlayer"></div>
	<div class="loader">
		<div class="spinner-border text-primary" role="status">
			<span class="visually-hidden">Loading...</span>
		</div>
	</div>
	<script src="static/js/bootstrap.bundle.min.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/tiny-slider.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/flatpickr.min.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/aos.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/glightbox.min.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/navbar.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/counter.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script src="static/js/custom.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script async="" src="static/js/js.js"
		type="84c8a796b24549f502f4054f-text/javascript"></script>
	<script type="84c8a796b24549f502f4054f-text/javascript">window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "UA-166033648-1");</script>
	<script src="static/js/rocket-loader.min.js"
		data-cf-settings="84c8a796b24549f502f4054f-|49" defer=""></script>

	<!-- jquery vue -->
	<script src="js/jquery-3.6.0.js"></script>
	<script src="js/vue.js"></script>
	<script src="js/show-dialog.js"></script>
	<script src="js/axios.min.js"></script>
	<script src="js/checkLogin.js"></script>
	<script>
	     let app1 = new Vue({
	    	 el:'.cbt',
	    	 data:{
	    		 post:[],
	    		 replys:[],
	    		 replysForPost:[],
	    		 mno:0,
	    		 pno:0,
				 files:[]
	    	 },
	    	 methods:{
				 downLoadFile(tender){
					 let str = "/file/downLoadFile?define1=" + tender
					 const a = document.createElement("a");
					 a.style.display = "none";
					 a.href = str;
					 a.rel = "noopener noreferrer";
					 document.body.append(a);
					 a.click();
				 },
	    		 addReply(){
	    			 let message = $("#message").val();
	    			 if(this.mno == 0 || this.pno == 0){
	    				 showmsg("请先登录...","red",function(){
	    					location.href="login.html";
	    				 })
	    			 }else{
	    				$.post("../../reply/add",{pno:this.pno,content:message},rt=>{
	    					 if(rt == 4){
	    			    		 showmsg("请先登录...","red",function(){
	    			    			 
	    			    		 });
	    			    	 }else if(rt == 3){
	    			    		 showmsg("信息不完整...","yellow");
	    			    	 }else if(rt == 1){
	    			    		 showmsg("回复成功","green");
	    			    		 $("#message").val("");
	    			    		 let params = new URLSearchParams();
	    			    		 let pno = sessionStorage.getItem("pno");
	    			    		 params.append("pno",pno);
	    			    		 axios.get("../../reply/searchByPno",{params}).then(resp=>{
	    						    	this.replys = resp.data;
	    						 })
	    			    	 }else{
	    			    		 showmsg("回复失败,请稍后再试...","red");
	    			    	 }
	    				},"json")

	    			 }
	    		 }
	    	 },
	    	 mounted:function(){
				 let nowWidth = $(".justify-content-center").width() - 20;
	    		 let id = sessionStorage.getItem("id");
				 var url = decodeURI(location.search)
				 let cbt = url.split("?")
				 if(url != undefined && url != "" && url != null){
					 id = cbt[1];
				 }

	    		 if(id == null || id == ""){
	    			 location.href="index.html";
	    		 }
	    		 let params = new URLSearchParams();
	    		 params.append("id",id);
			     axios.get("/tender/thisTenderInfo",{params}).then(resp=>{
			    	this.post = resp.data.data;
			     	let post = this.post
					this.files = []
					 if(nowWidth <= 500){
						 this.post.content =  this.post.content.replace(/<img/g, "<img style='height:auto;width:" + nowWidth + "px'")
						 this.post.content =  this.post.content.replace(/<span/g, "<span style='height:auto;width:" + nowWidth + "px'")
						 this.post.content =  this.post.content.replace(/<div/g, "<div style='height:auto;width:" + nowWidth + "px'")
						 this.post.content =  this.post.content.replace(/<table/g, "<table border='1 ' style='border:1px solid black; height:82px; padding:0px;width:" + nowWidth + "px'")
					 }

			     	if(post.fileNames.indexOf(";") == -1){
						this.files.push(post.fileNames)
					}else{
			     		let files = post.fileNames.split(";")
						files.forEach(item=>{
							this.files.push(item)
						})
					}
			     })
	    	 }
	     })
	</script>

</body>
</html>
